package com.youdianda.controller.user;

import com.youdianda.result.Result;
import com.youdianda.service.IYddArticleService;
import com.youdianda.service.IYddUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserInfoController {



    @Autowired
    private IYddUserService userService;

    /**
     * 用户登录getUserInfo
     * @return
     */
    @GetMapping("/getUserInfo")
    public Result getUserInfo(){
       return userService.getUserInfo();
    }

}
